﻿import SCUMMCore.*;
/*
El item debe heredar de object y contener el index en el inventory
*/
class InventoryEngine.SCUMMInventoryItem extends SCUMMObject {
	var index;
/*
	public function SCUMMInventoryItem(poObject:SCUMMObject, p_index:Number){
		super(poObject.mc);
		index = poObject.nInventoryIndex;
	}*/
	
	public function SCUMMInventoryItem(pMc:MovieClip, p_index:Number){
		super(pMc);
		index = p_index;
	}
	
	function walkToMe(){/*do nothing*/}
	
	function lookAt(){
			_global.SCUMMGame.currentScene.addSpeak(_global.SCUMMGame.currentScene.mainActor,
													new Array("Es " + this.sNammingKind + " " + this.mcSprite._name));
 	}
 	//########################################################
 	function talk(){
		_global.SCUMMGame.currentScene.addSpeak(_global.SCUMMGame.currentScene.mainActor,
													new Array("No se que podria decirle"));
	}
	function pull(){
		_global.SCUMMGame.currentScene.addSpeak(_global.SCUMMGame.currentScene.mainActor,
													new Array("No va a moverse"));
	}
	
	function push(){
		_global.SCUMMGame.currentScene.addSpeak(_global.SCUMMGame.currentScene.mainActor,
													new Array("Yo no puedo mover eso"));
	}
	
	function close(){
		_global.SCUMMGame.currentScene.addSpeak(_global.SCUMMGame.currentScene.mainActor,
													new Array("Para que algo pueda abrirse primero debe estar cerrado",
													"y eso no parece que lo este"));
	}
	
	function open(){
		_global.SCUMMGame.currentScene.addSpeak(_global.SCUMMGame.currentScene.mainActor,
													new Array("No parece querer abrirse"));
	}
	
	function use(){
			_global.SCUMMGame.currentScene.addSpeak(_global.SCUMMGame.currentScene.mainActor,
													new Array("No puedo usar eso"));
	}
	
	function get(){
		_global.SCUMMGame.currentScene.addSpeak(_global.SCUMMGame.currentScene.mainActor,
													new Array("No puedo tomar eso"));
	}
  	function give(){
			_global.SCUMMGame.currentScene.addSpeak(_global.SCUMMGame.currentScene.mainActor,
													new Array("No puedo dar algo que no tengo"));
 	}
 	
}
